﻿using System;
using log4net;

namespace Cms.Utilities
{
    public class Logging
    {
        public static void LogError(string message, Exception ex)
        {
            ILog logger = LogManager.GetLogger("System");
            if (logger.IsErrorEnabled)
                logger.Error(message, ex);
        }

        public static void LogInfo(string message)
        {
            ILog logger = LogManager.GetLogger("System");
            if (logger.IsInfoEnabled)
                logger.Info(message);
        }
    }
}